% /*=============================================================================
% Copyright (c) 2009-2014, Broadcom Corporation
% All rights reserved.
% 
% Project  :  vcfw
% Module   :  chip driver
% File     :  $RCSfile: $
% Revision :  $Revision: $
% 
% FILE DESCRIPTION
% VideoCore OS Abstraction Layer - Doxygen Header
% =============================================================================*/
\documentclass[openany,a4paper,12pt]{book}
\usepackage{a4wide}
\usepackage{makeidx}
\usepackage{titlesec}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{multicol}
\usepackage{float}
\usepackage{textcomp}
\usepackage{alltt}
\usepackage{times}
\usepackage{ifpdf}
\usepackage{fancyhdr}
\usepackage{lastpage}
\ifpdf
\usepackage[pdftex,
            pagebackref=true,
            colorlinks=true,
            linkcolor=blue,
            unicode
           ]{hyperref}
\else
\usepackage[ps2pdf,
            pagebackref=true,
            colorlinks=true,
            linkcolor=blue,
            unicode
           ]{hyperref}
\usepackage{pspicture}
\fi
\usepackage[utf8]{inputenc}
\usepackage{doxygen}

\renewcommand{\sfdefault}{phv}  % Arial
\renewcommand{\bfdefault}{phv}  % Arial
\renewcommand{\familydefault}{\sfdefault} 

\titleformat{\chapter}[hang]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{18pt}{\Huge}{}

%\date{$date}
\newcommand{\memoreference}{TBA}
\newcommand{\memoto}{Database}
\newcommand{\memocopy}{}
\newcommand{\doctitle}{VideoCore OS Abstraction}
\newcommand{\docauthor}{LGD}
\def\Tiny{\fontsize{7pt}{7pt}\selectfont}
\title{\doctitle}
\author{\docauthor}
\lfoot{}
\rfoot{}
\cfoot{\Tiny Broadcom Europe Ltd \hfill \textbullet \hfill 406 Science Park \hfill \textbullet \hfill Milton Road
\hfill \textbullet \hfill Cambridge \hfill \textbullet \hfill CB4 0WW \hfill \textbullet \hfill UK
\hfill \textbullet \hfill Phone +44(0) 1223 381300 \hfill \textbullet \hfill FAX: +44(0) 1223 381310}

\setlength{\headheight}{2.2in}
\setlength{\textheight}{6.8in}
\setlength{\topskip}{8pt}

\fancyhead{
  \vskip -62pt
  \includegraphics[width=\textwidth]{header.pdf}
  \begin{center}
   \textsf{
    {\begin{tabularx}{\textwidth}[t]{rXrX}
        { TO:}      & {\memoto}  & { FROM:}      & { \docauthor} \\
        { Date:}    & $date        & { Reference:} & \memoreference \\ 
        { Subject:} & \multicolumn{3}{l}{\doctitle} \\
        { Copy:}    & \multicolumn{3}{l}{\memocopy}\\
    \end{tabularx} \vskip 1em }
    \rule{\textwidth}{7pt}
    }
  \end{center}
  \vskip 1.5em
}

% Redefine include so that it does not output gratuitous blank pages
\renewcommand{\include}[1]{\input{#1} }

\makeindex
\setcounter{tocdepth}{1}
\renewcommand{\footrulewidth}{0.4pt}

\begin{document}
%\maketitle
%%\pagenumbering{roman}
%%\tableofcontents
%%\clearemptydoublepage
\pagenumbering{arabic}

%\renewcommand{\familydefault}{\rmdefault} 
\lhead{Reference: \memoreference}
\rhead{Page \thepage\ of \pageref*{LastPage}}
\setlength\headheight{15pt}
\setlength{\textheight}{687pt}



